#ifndef UL_CONFIG_H
#define UL_CONFIG_H

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "rtthread.h"

#define UL_NULL (0)
#define ul_inline                   static __inline

typedef enum {
    UL_EOK = 0,
    UL_ERROR,
    UL_EFULL,
} ul_ecode;

#ifdef __has_include
#if __has_include("rtthread.h")
#define ul_malloc   rt_malloc
#define ul_free     rt_free
#else
#define ul_malloc   malloc
#define ul_free     free
#endif  /* __has_include("rtthread.h") */
#endif  /* __has_include */

#endif